package com.hzqy.persistence.dao.outLinkControl;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.SysAreaVo;
import com.hzqy.web.vo.system.SysConfigVo;

@Repository
public class OutLinkControlDao extends PersistenceDao<SysConfigVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	public SysConfigVo findOutLinkAdmin(Map<String, Object> map) {
		return getSqlSession().selectOne(this.getNamespace() + "findOutLinkAdmin", map);
	}
	public SysConfigVo findControl(Map<String, Object> map) {
		return getSqlSession().selectOne(this.getNamespace() + "findControl", map);
	}
	public int updateControl(Map<String, Object> map) {
		return getSqlSession().update(this.getNamespace() + "updateControl", map);
	}
	public List<SysAreaVo> findAllGoCommonArea(Map<String, Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "findAllGoCommonArea", map);
	}
}